package com.commerce.exception;


import com.commerce.enums.ErrorCode;

public class ResultException extends RuntimeException{
    private int code = 500;

    public ResultException(ErrorCode errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    public int getCode() {
        return code;
    }

}
